package top.zuli.package01.class01;

/**
 * 八大基本数据类型定义
 */
public class PrimitiveType {
    public static void main(String[] args) {
        //定义整数
        byte a = 1;
        short b = 2;
        int c = 3;
        long d = 4L;
        //定义小数
        float e = 5.1F;
        double f = 5.5;
        //定义字符
        char g = 'a';
        g = '\r';
        g = '\u0043';
        //定义布尔
        boolean h = true;
        h = false;
    }
}
